import request from '@/utils/request'

// 查询大模型配置列表
export function listLlm(query) {
  return request({
    url: '/tool/llm/list',
    method: 'get',
    params: query
  })
}

// 查询大模型配置详细
export function getLlm(id) {
  return request({
    url: '/tool/llm/' + id,
    method: 'get'
  })
}

// 新增大模型配置
export function addLlm(data) {
  return request({
    url: '/tool/llm',
    method: 'post',
    data: data
  })
}

// 修改大模型配置
export function updateLlm(data) {
  return request({
    url: '/tool/llm',
    method: 'put',
    data: data
  })
}

// 删除大模型配置
export function delLlm(id) {
  return request({
    url: '/tool/llm/' + id,
    method: 'delete'
  })
}

// 缓存大模型配置
export function cachLlm() {
  return request({
    url: '/tool/llm/cache',
    method: 'put'
  })
}